package com.jk.admin.dao;

import com.jk.admin.entity.BannerEntity;
import com.jk.admin.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface BannerDao {


    @Select("select * from t_banner")
    List<BannerEntity> getBanner();

    @Select("select * from t_banner where id=#{id}")
    BannerEntity getById(Integer id);

    @Update("update  t_banner set " +
            "img=#{img} " +
            " where id=#{id}")
    void updBan(BannerEntity bannerEntity);
}
